﻿using AppService.IService.System_numbering;
using Domain.IRepository.System_numbering;
using IdentityModel.Client;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace AppService.Service.System_numbering
{
    [Dependency(ServiceLifetime.Scoped)]
    public class BHService : IBHService
    {
        private readonly IServiceProvider serviceProvider;
        private readonly IBHRepository bHRepository;

        //public IBHRepository BHRepository { get; set; }
        public BHService(IServiceProvider serviceProvider, IBHRepository BHRepository) 
        {
            this.serviceProvider = serviceProvider;
            bHRepository = BHRepository;
        }
        public string BHGZ(string prefix)
        {
            return bHRepository.BHGZ(prefix);
        }

        public int GetBH(string prefix)
        {
            return bHRepository.GetBH(prefix);
        }
    }
}
